﻿using System;

using DBUtility.PetaPoco;

namespace Model
{
    /// <summary>
    /// 程序应用表
    /// </summary>
    [Serializable]
    [TableName("app")]
    [PrimaryKey("Id", autoIncrement = true)]
    public partial class App
    {
        #region Model
        private int _id;
		private string _appname;
		private string _certificate;
		private string _password;
		private string _senderid;
		private string _authorizationtoken;
		private string _packagename;

        /// <summary>
		/// 主键Id
		/// </summary>
		public int Id
		{
		    set { _id = value; }
		    get { return _id; }
		}
		/// <summary>
		/// app名稱
		/// </summary>
		public string AppName
		{
		    set { _appname = (value == null || value.Length <= 100 ? value : value.Substring(0, 100)); }
		    get { return _appname; }
		}
		/// <summary>
		/// app證書
		/// </summary>
		public string Certificate
		{
		    set { _certificate = (value == null || value.Length <= 100 ? value : value.Substring(0, 100)); }
		    get { return _certificate; }
		}
		/// <summary>
		/// app密碼
		/// </summary>
		public string PassWord
		{
		    set { _password = (value == null || value.Length <= 100 ? value : value.Substring(0, 100)); }
		    get { return _password; }
		}
		/// <summary>
		/// 项目Id
		/// </summary>
		public string SenderId
		{
		    set { _senderid = (value == null || value.Length <= 100 ? value : value.Substring(0, 100)); }
		    get { return _senderid; }
		}
		/// <summary>
		/// 授权令牌
		/// </summary>
		public string AuthorizationToken
		{
		    set { _authorizationtoken = (value == null || value.Length <= 100 ? value : value.Substring(0, 100)); }
		    get { return _authorizationtoken; }
		}
		/// <summary>
		/// 包名
		/// </summary>
		public string PackageName
		{
		    set { _packagename = (value == null || value.Length <= 100 ? value : value.Substring(0, 100)); }
		    get { return _packagename; }
		}
        #endregion
    }
}